package com.wolfalpha.lwtool.constant;

import java.util.HashMap;
import java.util.Map;

/**
 * 常量
 * @author ttStudio
 *
 */
public class Constant {
	public static String encode = "UTF-8";
	//列表URL
	public static String listUrl = "http://app.fafajob.com/parttimeJob/list.do";
	//详情URL
	public static String infoUrl ="http://app.fafajob.com/parttimeJob/info.do";
	//列表Post
	public static Map<String, String> getHeadMap() {
		Map<String, String> map = new HashMap<String, String>();
		map.put("competenceCode",
				"w1T01f5AlH5zpGyaQLW9zOVf%2BlcMExInMtzDIgeA2aA%3D%0A");
		map.put("provincesName", "%E6%B1%9F%E8%8B%8F%E7%9C%81");
		map.put("cityName", "%E5%8D%97%E4%BA%AC%E5%B8%82");
		map.put("pjType", "ordinary");
		map.put("apiType", "index");
		map.put("sign", "612303b8e1ef25981a5178b3d3ef8ad");
		map.put("longitude", "118.781809");
		map.put("latitude", "32.050058");
		map.put("client_type", "app_client");
		map.put("jobNature", "");
		map.put("paymentMeans", "");
		map.put("jobType", "");
		return map;
	}
	/**
	 * 更多Post
	 * @param bid 最下面的id
	 * @return
	 */
	public static Map<String, String> getMoreMap(int bid) {
		Map<String, String> map = new HashMap<String, String>();
		map.put("competenceCode",
				"w1T01f5AlH5zpGyaQLW9zOVf%2BlcMExInMtzDIgeA2aA%3D%0A");
		map.put("provincesName", "%E6%B1%9F%E8%8B%8F%E7%9C%81");
		map.put("cityName", "%E5%8D%97%E4%BA%AC%E5%B8%82");
		map.put("pjType", "ordinary");
		map.put("apiType", "more");
		map.put("sign", "d18d43e79b62b6cd12f60a0708639222");
		map.put("longitude", "118.781809");
		map.put("latitude", "32.050058");
		map.put("client_type", "app_client");
		map.put("jobNature", "");
		map.put("paymentMeans", "");
		map.put("jobType", "");
		map.put("moreId", String.valueOf(bid));
		return map;
	}
	/**
	 * 刷新Post
	 * @param tid 最上面的id
	 * @return
	 */
	public static Map<String, String> getRefreshMap(int tid) {
		Map<String, String> map = new HashMap<String, String>();
		map.put("competenceCode",
				"w1T01f5AlH5zpGyaQLW9zOVf%2BlcMExInMtzDIgeA2aA%3D%0A");
		map.put("provincesName", "%E6%B1%9F%E8%8B%8F%E7%9C%81");
		map.put("cityName", "%E5%8D%97%E4%BA%AC%E5%B8%82");
		map.put("pjType", "ordinary");
		map.put("apiType", "refresh");
		map.put("sign", "16b4c1a2aaa94a649a1f4682415a286c");
		map.put("longitude", "118.781809");
		map.put("latitude", "32.050058");
		map.put("client_type", "app_client");
		map.put("jobNature", "");
		map.put("paymentMeans", "");
		map.put("jobType", "");
		map.put("refreshId", String.valueOf(tid));
		return map;
	}
	//详情Post
	public static Map<String, String> getInfoMap(String id) {
		Map<String, String> map = new HashMap<String, String>();
		map.put("pjId", id);
		map.put("client_type", "app_client");
		return map;
	}
}
